package com.theyeasy.dvmini.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import org.theyeasy.weixin.service.BaseDrop;
 

public class SysWxauthorize implements Serializable,BaseDrop {
	@Id
    private Integer id;

    private Integer merchantid;

    private String wxcode;

    private Date createdtime;

    private String wxname;

    private String headimg;

    private Integer servicetypeinfo;

    private Integer verifytypeinfo;

    private String username;

    private String alias;

    private String businessinfo;

    private String wxappid;

    private String funcinfo;

    private String qrcodeurl;

    private String refreshtoken;

    private Integer wxsysparmid;

    private Integer status;

    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMerchantid() {
        return merchantid;
    }

    public void setMerchantid(Integer merchantid) {
        this.merchantid = merchantid;
    }

    public String getWxcode() {
        return wxcode;
    }

    public void setWxcode(String wxcode) {
        this.wxcode = wxcode;
    }

    public Date getCreatedtime() {
        return createdtime;
    }

    public void setCreatedtime(Date createdtime) {
        this.createdtime = createdtime;
    }

    public String getWxname() {
        return wxname;
    }

    public void setWxname(String wxname) {
        this.wxname = wxname;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public Integer getServicetypeinfo() {
        return servicetypeinfo;
    }

    public void setServicetypeinfo(Integer servicetypeinfo) {
        this.servicetypeinfo = servicetypeinfo;
    }

    public Integer getVerifytypeinfo() {
        return verifytypeinfo;
    }

    public void setVerifytypeinfo(Integer verifytypeinfo) {
        this.verifytypeinfo = verifytypeinfo;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getBusinessinfo() {
        return businessinfo;
    }

    public void setBusinessinfo(String businessinfo) {
        this.businessinfo = businessinfo;
    }

    public String getWxappid() {
        return wxappid;
    }

    public void setWxappid(String wxappid) {
        this.wxappid = wxappid;
    }

    public String getFuncinfo() {
        return funcinfo;
    }

    public void setFuncinfo(String funcinfo) {
        this.funcinfo = funcinfo;
    }

    public String getQrcodeurl() {
        return qrcodeurl;
    }

    public void setQrcodeurl(String qrcodeurl) {
        this.qrcodeurl = qrcodeurl;
    }

    public String getRefreshtoken() {
        return refreshtoken;
    }

    public void setRefreshtoken(String refreshtoken) {
        this.refreshtoken = refreshtoken;
    }

    public Integer getWxsysparmid() {
        return wxsysparmid;
    }

    public void setWxsysparmid(Integer wxsysparmid) {
        this.wxsysparmid = wxsysparmid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", merchantid=").append(merchantid);
        sb.append(", wxcode=").append(wxcode);
        sb.append(", createdtime=").append(createdtime);
        sb.append(", wxname=").append(wxname);
        sb.append(", headimg=").append(headimg);
        sb.append(", servicetypeinfo=").append(servicetypeinfo);
        sb.append(", verifytypeinfo=").append(verifytypeinfo);
        sb.append(", username=").append(username);
        sb.append(", alias=").append(alias);
        sb.append(", businessinfo=").append(businessinfo);
        sb.append(", wxappid=").append(wxappid);
        sb.append(", funcinfo=").append(funcinfo);
        sb.append(", qrcodeurl=").append(qrcodeurl);
        sb.append(", refreshtoken=").append(refreshtoken);
        sb.append(", wxsysparmid=").append(wxsysparmid);
        sb.append(", status=").append(status);
        sb.append(", deleted=").append(deleted);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysWxauthorize other = (SysWxauthorize) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMerchantid() == null ? other.getMerchantid() == null : this.getMerchantid().equals(other.getMerchantid()))
            && (this.getWxcode() == null ? other.getWxcode() == null : this.getWxcode().equals(other.getWxcode()))
            && (this.getCreatedtime() == null ? other.getCreatedtime() == null : this.getCreatedtime().equals(other.getCreatedtime()))
            && (this.getWxname() == null ? other.getWxname() == null : this.getWxname().equals(other.getWxname()))
            && (this.getHeadimg() == null ? other.getHeadimg() == null : this.getHeadimg().equals(other.getHeadimg()))
            && (this.getServicetypeinfo() == null ? other.getServicetypeinfo() == null : this.getServicetypeinfo().equals(other.getServicetypeinfo()))
            && (this.getVerifytypeinfo() == null ? other.getVerifytypeinfo() == null : this.getVerifytypeinfo().equals(other.getVerifytypeinfo()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getAlias() == null ? other.getAlias() == null : this.getAlias().equals(other.getAlias()))
            && (this.getBusinessinfo() == null ? other.getBusinessinfo() == null : this.getBusinessinfo().equals(other.getBusinessinfo()))
            && (this.getWxappid() == null ? other.getWxappid() == null : this.getWxappid().equals(other.getWxappid()))
            && (this.getFuncinfo() == null ? other.getFuncinfo() == null : this.getFuncinfo().equals(other.getFuncinfo()))
            && (this.getQrcodeurl() == null ? other.getQrcodeurl() == null : this.getQrcodeurl().equals(other.getQrcodeurl()))
            && (this.getRefreshtoken() == null ? other.getRefreshtoken() == null : this.getRefreshtoken().equals(other.getRefreshtoken()))
            && (this.getWxsysparmid() == null ? other.getWxsysparmid() == null : this.getWxsysparmid().equals(other.getWxsysparmid()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMerchantid() == null) ? 0 : getMerchantid().hashCode());
        result = prime * result + ((getWxcode() == null) ? 0 : getWxcode().hashCode());
        result = prime * result + ((getCreatedtime() == null) ? 0 : getCreatedtime().hashCode());
        result = prime * result + ((getWxname() == null) ? 0 : getWxname().hashCode());
        result = prime * result + ((getHeadimg() == null) ? 0 : getHeadimg().hashCode());
        result = prime * result + ((getServicetypeinfo() == null) ? 0 : getServicetypeinfo().hashCode());
        result = prime * result + ((getVerifytypeinfo() == null) ? 0 : getVerifytypeinfo().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getAlias() == null) ? 0 : getAlias().hashCode());
        result = prime * result + ((getBusinessinfo() == null) ? 0 : getBusinessinfo().hashCode());
        result = prime * result + ((getWxappid() == null) ? 0 : getWxappid().hashCode());
        result = prime * result + ((getFuncinfo() == null) ? 0 : getFuncinfo().hashCode());
        result = prime * result + ((getQrcodeurl() == null) ? 0 : getQrcodeurl().hashCode());
        result = prime * result + ((getRefreshtoken() == null) ? 0 : getRefreshtoken().hashCode());
        result = prime * result + ((getWxsysparmid() == null) ? 0 : getWxsysparmid().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }

	/* (非 Javadoc)
	 * Description:
	 * @see com.theyeasy.wykj.base.constant.BaseDrop#getValueField()
	 */
	@Override
	public String getValueField() {
		// TODO Auto-generated method stub
		return this.getId()+"";
	}

	/* (非 Javadoc)
	 * Description:
	 * @see com.theyeasy.wykj.base.constant.BaseDrop#getTxtField()
	 */
	@Override
	public String getTxtField() {
		// TODO Auto-generated method stub
		return this.getWxname();
	}
}